package com.my.demoredis.domain;

import org.springframework.data.redis.core.index.Indexed;

/**
 * Classname: Family
 * Package: com.my.demoredis.domain
 * Description:
 * 家庭实体类
 * @Author Alex Liang
 * @Create 2024/7/6 下午8:30
 * @Version 1.0
 */

public class Family {
    /**
     * 成员类型
     */
    @Indexed
    private String type;
    /**
     * 成员名
     */
    @Indexed
    private String name;

    public Family() {
    }

    public Family( String type, String name) {
        this.name = name;
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Family{" +
                "type='" + type + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
